﻿//using System;
//using System.Collections.Generic;
//using System.IO;
//using System.Linq;
//using System.Text;

//using Microsoft.VisualStudio.TestTools.UnitTesting;

//namespace Pibby.Core.Tests
//{
//    [TestClass]
//    public class PodcastCollectionImporterExporterTests
//    {
//        [TestMethod]
//        public void ExportAndImportInOpml()
//        {
//            PodcastCollectionExporter exporter = new PodcastCollectionExporter();

//            exporter.Podcasts = Stubs.PodcastFactory.GeneratePodcasts("PC", 10);

//            StringBuilder builder = new StringBuilder ();

//            using (TextWriter writer = new StringWriter(builder))
//            {
//                exporter.Save(writer);
//            }

//            PodcastCollectionImporter importer = new PodcastCollectionImporter();

//            using (TextReader reader = new StringReader(builder.ToString()))
//            {
//                importer.Load(reader);
//            }

//            Assert.AreEqual(exporter.Podcasts.Count, importer.Podcasts.Count);
//        }
//    }
//}
